import request from '@/utils/request'


// 添加企业员工
export function getEmployeeAll(query) {
  return request({
    url: '/apartment/employee/getEmployeeAll',
    method: 'get',
    params: query
  })
}

// 添加企业员工
export function addEmployee(form) {
  return request({
    url: '/apartment/employee/addEmployee',
    method: 'post',
    data: form
  })
}


// id查员工
export function getEmployeeById(id) {
  return request({
    url: '/apartment/employee/getEmployeeById/' + id,
    method: 'get',
  })
}

// id删除员工
export function delEmployee(id) {
  return request({
    url: '/apartment/employee/delEmployee/' + id,
    method: 'delete',
  })
}

// 修改企业员工
export function updateEmployee(form) {
  return request({
    url: '/apartment/employee/updateEmployee',
    method: 'put',
    data: form
  })
}

// 申请公寓
export function shengqing(id) {
  return request({
    url: '/apartment/employee/shengqing/' + id,
    method: 'get',
  })
}
